Check commands work on CLI but not on web interface
Posted: Sun Mar 20, 2011 1:34 am
I've set up Nagios on an IBM x3250 M3 running ubuntu 10.04 LTS and I'm able to log in and receive alerts. However, I can't get checks for any remote machines to pass on the web interface. For example, running this command on a terminal works fine:
On the web interface, all I get back is the following:
CRITICAL - Packet Filtered (192.168.1.65)
I can execute check_snmp on the CLI targeting machines which I've configured SNMP on and that works fine:
On the web interface, I get back this:\
External command error: Timeout: No Response from 192.168.1.65:161.
I have tried recreating the users and recompiling nagios since I figured this might be a user permissions issue for the nagios user. That did not help, though. I've looked all over google but could not find anyone else with the same problem. Usually, when it works on the command line interface, it works on the web browser interface. Does anyone have any ideas?
Code: Select all
nagios@ubuntu:/usr/local/nagios/libexec$ ./check_ping -H 172.16.96.65 -w 80,10% -c 100,20% -p 4
PING OK - Packet loss = 0%, RTA = 3.33 ms|rta=3.326000ms;80.000000;100.000000;0.000000 pl=0%;10;20;0
CRITICAL - Packet Filtered (192.168.1.65)
I can execute check_snmp on the CLI targeting machines which I've configured SNMP on and that works fine:
Code: Select all
nagios@ubuntu:/usr/local/nagios/libexec$ ./check_snmp -H 172.16.96.65 -o sysUpTime.0
SNMP OK - Timeticks: (378560625) 43 days, 19:33:26.25 |
External command error: Timeout: No Response from 192.168.1.65:161.
I have tried recreating the users and recompiling nagios since I figured this might be a user permissions issue for the nagios user. That did not help, though. I've looked all over google but could not find anyone else with the same problem. Usually, when it works on the command line interface, it works on the web browser interface. Does anyone have any ideas?