Re: [Nagios-users] Missing -l parameters. Detailed i nformation (can´t solve the problem) PLEASE H ELP!!
Sean, Thanks a lot for your help. It is now working fine. Regards. 2010/6/17 Sean McAfee smca...@collaborativefusion.com Gustavo Araujo wrote: Hello everyone. I´m using ubuntu-server 10.4 with nagios 3.2 (from repository) Follow down my configurations. /etc/nagios-plugins/config/nt.cfg: define command { command_namecheck_nt command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$' } define command { command_namecheck_nscp command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v '$ARG1$' } /etc/nagios3/conf.d/conf_nagios_afis.cfg define service{ host_name dpfmas01 service_description check_space use generic-service check_command check_nscp!USEDDISKSPACE! -l c -w 80 -c 90 } Command, not service, definitions contain the switches. Service definition's check_commands can only take !-delimited arguments, which are then used to populate the switches from the command definition. You can hardcode the drive, warning/critical levels, and port into the command definition, but I'd do the following: define command { command_namecheck_nt_disk command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p '$ARG1$' -v 'USEDDISKSPACE' -l '$ARG2$' -w '$ARG3$' -c '$ARG4$' } Which would mean your service definition should look like: define service{ host_name dpfmas01 service_description check_space use generic-service check_command check_nt_disk!12489!c!80!90 } Hope this helps, -- Sean McAfee Senior Systems Engineer -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Gustavo Campos Araujo -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Missing -l parameters.
Hello everyone. I´m monitoring a lot of servers in my nagios. Today I´m trying to use the check_nt plugin. But when i try to use it i always get the error message. -- Gustavo Campos Araujo -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Missing -l parameters. Detailed i nformation (can´t solve the problem) PLEASE H ELP!!
Hello everyone. I´m using ubuntu-server 10.4 with nagios 3.2 (from repository) Follow down my configurations. /etc/nagios-plugins/config/nt.cfg: define command { command_namecheck_nt command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$' } define command { command_namecheck_nscp command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v '$ARG1$' } /etc/nagios3/conf.d/conf_nagios_afis.cfg define service{ host_name dpfmas01 service_description check_space use generic-service check_command check_nscp!USEDDISKSPACE! -l c -w 80 -c 90 } -- Gustavo Campos Araujo -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Missing -l parameters. Detailed i nformation (can´t solve the problem) PLEASE HELP!!
Gustavo Araujo wrote: Hello everyone. I´m using ubuntu-server 10.4 with nagios 3.2 (from repository) Follow down my configurations. /etc/nagios-plugins/config/nt.cfg: define command { command_namecheck_nt command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -v '$ARG1$' } define command { command_namecheck_nscp command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p 12489 -v '$ARG1$' } /etc/nagios3/conf.d/conf_nagios_afis.cfg define service{ host_name dpfmas01 service_description check_space use generic-service check_command check_nscp!USEDDISKSPACE! -l c -w 80 -c 90 } Command, not service, definitions contain the switches. Service definition's check_commands can only take !-delimited arguments, which are then used to populate the switches from the command definition. You can hardcode the drive, warning/critical levels, and port into the command definition, but I'd do the following: define command { command_namecheck_nt_disk command_line/usr/lib/nagios/plugins/check_nt -H '$HOSTADDRESS$' -p '$ARG1$' -v 'USEDDISKSPACE' -l '$ARG2$' -w '$ARG3$' -c '$ARG4$' } Which would mean your service definition should look like: define service{ host_name dpfmas01 service_description check_space use generic-service check_command check_nt_disk!12489!c!80!90 } Hope this helps, -- Sean McAfee Senior Systems Engineer -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Missing -l parameters.
On 17 June 2010 18:18, Gustavo Araujo gustavocamposara...@gmail.com wrote: Hello everyone. I´m monitoring a lot of servers in my nagios. Today I´m trying to use the check_nt plugin. But when i try to use it i always get the error message. What does the error message say? -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null