Nagwin_Nagios Service not starting

5 posts / 0 new
Last post
Lanre
Offline
Last seen: 7 years 6 months ago
Joined: 25.02.2013 - 19:04
Nagwin_Nagios Service not starting

I have installed nagwin 1.3 on 3 computers. One Windows XP (32bit), one Windows Server 2008 (32bit) and another Windows Server 2008 (64bit). All of them seem to exibit the same behaviour when i attempt to configure a machine to monitor. Once i create the config file for each of the hosts i want to monitor (of course i need to restart the nagwin services for the changes to take effect on http://localhost. But no matter how i do it, the Nagwin_Nagios service refuses to start with the error message

The Nagwin-Nagios service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

My nagios.log file contains the following:

[1361816139] Nagios 3.3.1 starting... (PID=4972)
[1361816139] Local time is Mon Feb 25 19:15:39 WCAST 2013
[1361816139] LOG VERSION: 2.0
[1361816139] Error: Template 'host-pnp' specified in host definition could not be not found (config file '/etc/nagios/nagwin/hobes.cfg', starting on line 2)
[1361816139] Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=4972)

Please, can someone assist witht this challenge, I've been on it for 2days now and no joy.

Thanks in advance

itefix
Offline
Last seen: 14 hours 50 min ago
Joined: 01.05.2008 - 21:33
Please remove host-pnp or

Please remove host-pnp or srv-pnp from your definitions. They are Pnp4Nagios specific which are not supported by the free edition.

Lanre
Offline
Last seen: 7 years 6 months ago
Joined: 25.02.2013 - 19:04
Thanks. I already commented

Thanks. I already commented out the host-pnp and srv-pnp. Its fine now. Thanks!

Lanre
Offline
Last seen: 7 years 6 months ago
Joined: 25.02.2013 - 19:04
Dear Colleages, I'm a newbie

Dear Colleages, I'm a newbie at this so please assist.

In my service configuration file for logical_disk_space, i have the following:

define service{
 use generic-service
 host_name my-computer's-name
 service_description Disk C
 check_command wmic_local_disk_free!C!--warn 1000 --crit 250
}

The line in bold is what i'm having problems with as the values 1000 and 250 were what the installation guide from this site (WMI agentless monitoring) advised me to use.

In what units are these specified, please? Bytes; KB; MB, GB? Is it possible to specify the values in percentage?

Please assist. TK, please help. Thanks in advance.

itefix
Offline
Last seen: 14 hours 50 min ago
Joined: 01.05.2008 - 21:33
Actually, what you're asking

Actually, what you're asking has nothing to do with that discussion thread. Please consult Nagios documentation about how to form command/service in Nagios configuration files. You may use --compare option of the check_wmic to control how threshold check will work.