Page 1 of 1

SNMP error: No response from remote host "coresw1"

Posted: Thu Sep 10, 2020 2:31 am
by idsatishkumar
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"

Re: SNMP error: No response from remote host "coresw1"

Posted: Fri Sep 11, 2020 9:12 am
by benjaminsmith
HI,

I noticed that there are two different command options posted here (C public -t mem vs C public -t module ). Are both options failing in the GUI and working in the command prompt.

Once you configure the service and Apply Configuration, are you getting valid checks results? Also, can you posted a screenshot of the service in the CCM so we can see how the arguments are configured? Thank you.