problems monitoring apc battery back-ups
Posted: Wed May 12, 2010 12:51 pm
Hello, I am having a problems trying to monitor APC battery back-ups. I had this working in Nagios Core but I am having problems getting this to work in NagiosXI. I can get it to work if I specify the oid when I add the host in the monitoring wizard. I have about 10 APC services I would like to monitor so I would like to create individual services, then create a service group so I could apply it to all the APC's. This is were I get the error:
'/usr/local/nagios/etc/services/ups_load.cfg'...
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'ups_load' on host 'dh140.noc.sunysb.edu'
Error: Could not register service (config file '/usr/local/nagios/etc/services/ups_load.cfg', starting on line 14)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions.
If I run the following:
[root@dh143 libexec]# ./check_snmp -C public -H 129.x.x.x -o .1.3.6.1.4.1.318.1.1.1.4.2.3.0 -w 60 -c 90 -l '\Current Load\' -u '\%\'
\Current Load\ OK - 0 \%\ | iso.3.6.1.4.1.318.1.1.1.4.2.3.0=0
I get valid output and this is the same data I am entering in the service confguration. I tried importing the files from the nagios core installation but I get an error:
PHP Notice: Undefined offset: 1 in /usr/local/nagiosxi/tools/xiprepimport.php on line 101
I don't mind setting this up from scratch but I need it to be able to monitor the APC's, if I can get this to work I am sure we will purchase as we like the customization and the price. Any help would be greatly appreciated.
'/usr/local/nagios/etc/services/ups_load.cfg'...
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'ups_load' on host 'dh140.noc.sunysb.edu'
Error: Could not register service (config file '/usr/local/nagios/etc/services/ups_load.cfg', starting on line 14)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions.
If I run the following:
[root@dh143 libexec]# ./check_snmp -C public -H 129.x.x.x -o .1.3.6.1.4.1.318.1.1.1.4.2.3.0 -w 60 -c 90 -l '\Current Load\' -u '\%\'
\Current Load\ OK - 0 \%\ | iso.3.6.1.4.1.318.1.1.1.4.2.3.0=0
I get valid output and this is the same data I am entering in the service confguration. I tried importing the files from the nagios core installation but I get an error:
PHP Notice: Undefined offset: 1 in /usr/local/nagiosxi/tools/xiprepimport.php on line 101
I don't mind setting this up from scratch but I need it to be able to monitor the APC's, if I can get this to work I am sure we will purchase as we like the customization and the price. Any help would be greatly appreciated.