problems monitoring apc battery back-ups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
chrisf
Posts: 6
Joined: Tue May 11, 2010 10:31 pm

problems monitoring apc battery back-ups

Post by chrisf »

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.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: problems monitoring apc battery back-ups

Post by tonyyarusso »

To clarify, are you saying that adding hosts individually with the wizards works fine, but what you want to do is import a config with all 10 and that's the part that's failing?
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
chrisf
Posts: 6
Joined: Tue May 11, 2010 10:31 pm

Re: problems monitoring apc battery back-ups

Post by chrisf »

Thanks for responding. What I would like to do is set up all 10 services, then add them to a service-group and then add this to the APC host-group. It will not allow me to do this. I am not to worried about importing as I only added about 30-40 devices and would rather concentrate on getting it to work natively if possible. I hope this helps. Thanks.

Chris
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: problems monitoring apc battery back-ups

Post by tonyyarusso »

You're trying to add the *service group* to a host group? Yeah, that won't work - you'd need to add services to a service group and hosts to a host group separately.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
chrisf
Posts: 6
Joined: Tue May 11, 2010 10:31 pm

Re: problems monitoring apc battery back-ups

Post by chrisf »

Problem I was having was I was not adding the required notification intervals, once I added these they started to work. thank you.
Locked