SNMP error: No response from remote host "coresw1"
Posted: Thu Sep 10, 2020 2:31 am
Dear All,
I have downloaded plugin to monitor the health of my Cisco switches. I have put the plugin in /usr/local/nagios/libexec/check_cisco and provided required permission and also set the ownership to apache:nagios. Plugin is working fine from command prompt.
[nagios@inggnm7iet ~]$ /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t module
Modules: OK - 6 Modules are running all good | total=6 err=0
I have added same plugin in Nagios command. Please see the command.
$USER1$/check_cisco -H $HOSTADDRESS$ $ARG1$
I added host with name name of coresw1 and respective health monitoring service and mentioned below text in #ARG1
-C public -t mem
When I manually run the service from nagios web console. I am getting below error.
[nagios@nagios-server ~]$ /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t mem
SNMP error: No response from remote host "coresw1"
But if I run /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t mem in nagios command prompt with nagios login it works fine
nagios@inggnm7iet ~]$ /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t module
Modules: OK - 6 Modules are running all good | total=6 err=0
Please suggest how can I fix this problemw1"
I have downloaded plugin to monitor the health of my Cisco switches. I have put the plugin in /usr/local/nagios/libexec/check_cisco and provided required permission and also set the ownership to apache:nagios. Plugin is working fine from command prompt.
[nagios@inggnm7iet ~]$ /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t module
Modules: OK - 6 Modules are running all good | total=6 err=0
I have added same plugin in Nagios command. Please see the command.
$USER1$/check_cisco -H $HOSTADDRESS$ $ARG1$
I added host with name name of coresw1 and respective health monitoring service and mentioned below text in #ARG1
-C public -t mem
When I manually run the service from nagios web console. I am getting below error.
[nagios@nagios-server ~]$ /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t mem
SNMP error: No response from remote host "coresw1"
But if I run /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t mem in nagios command prompt with nagios login it works fine
nagios@inggnm7iet ~]$ /usr/local/nagios/libexec/check_cisco -H coresw1 -C public -t module
Modules: OK - 6 Modules are running all good | total=6 err=0
Please suggest how can I fix this problemw1"