Have you tried running it as the nagios user? Have you double checked your checkcommand is using the right macros $HOSTADDRESS$ and the the ip address of the apc ups host is correct?
Perhaps nagios is using -H $HOSTADDRESS$ which is not the same as -H hostname? -h Hari Sekhon zack kenton wrote: > Hi list > > I got a perl script off of the exchange which checks the health of an APC UPS > through SNMP. Now running it from the command line like ./check_snmp_apcups > -H hostname -C community it works wonderful, so I know the snmp agent is > running on the UPS. However, when I run from within nagios, I get a warning > return of SNMP agent is not responding, but I know its up and running? Any > insight? > > - zack kenton (zkenton) > > ----------------------- > The mailing list archive is found here: > http://www.nagiosexchange.org/nagios-users.34.0.html > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Nagios-users mailing list > [email protected] > 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 > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Nagios-users mailing list [email protected] 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
