Nagios 2240 + Check-Nagios-NG.pl + Configuration
Posted: Mon Jul 14, 2014 5:59 pm
I'm having troubles implementing Nagios to monitor Netapp 2240.
- STEP 1 -
Download check-nagios-ng.pl and place it /usr/local/nagios/libexec/
#chmod +x check-Nagios-ng.pl
- STEP 2 -
# perl -MCPAN -e shell
cpan> install Net::SNMP
- STEP 3 -
(modifiy commands.cfg)
define command{
command_name check_netapp_cpu
command_line /usr/bin/perl5.8.8 $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T CPULOAD -w 80 -c 90 -C public
}
define command{
command_name check_netapp_fan
command_line /usr/bin/perl5.8.8 $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T FAN -w 1 -c 3 -C public
}
- STEP 4 -
(modifiy windows.cfg)
define service{
use generic-service
host_name FILER1
service_description CPU Load
check_command check_netapp_cpu
}
define service{
use generic-service
host_name FILER1
service_description Fan Fail
check_command check_netapp_fan
}
- STEP 5 -
# services nagios restart
- ERROR RECEIVED AFTER RESTARTING SERVICES -
Error: Could not find any host matching 'FILER1' (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 384)
Error: Failed to expand host list 'FILER1' for service 'Fan Fail' (/usr/local/nagios/etc/objects/windows.cfg:384)
Error processing object config files!
What could be happening? Thanks in advanced.
- STEP 1 -
Download check-nagios-ng.pl and place it /usr/local/nagios/libexec/
#chmod +x check-Nagios-ng.pl
- STEP 2 -
# perl -MCPAN -e shell
cpan> install Net::SNMP
- STEP 3 -
(modifiy commands.cfg)
define command{
command_name check_netapp_cpu
command_line /usr/bin/perl5.8.8 $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T CPULOAD -w 80 -c 90 -C public
}
define command{
command_name check_netapp_fan
command_line /usr/bin/perl5.8.8 $USER1$/check-netapp-ng.pl -H $HOSTADDRESS$ -T FAN -w 1 -c 3 -C public
}
- STEP 4 -
(modifiy windows.cfg)
define service{
use generic-service
host_name FILER1
service_description CPU Load
check_command check_netapp_cpu
}
define service{
use generic-service
host_name FILER1
service_description Fan Fail
check_command check_netapp_fan
}
- STEP 5 -
# services nagios restart
- ERROR RECEIVED AFTER RESTARTING SERVICES -
Error: Could not find any host matching 'FILER1' (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 384)
Error: Failed to expand host list 'FILER1' for service 'Fan Fail' (/usr/local/nagios/etc/objects/windows.cfg:384)
Error processing object config files!
What could be happening? Thanks in advanced.