SNMP error: No response from remote host "coresw1"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
idsatishkumar
Posts: 1
Joined: Thu Jul 09, 2020 7:05 am

SNMP error: No response from remote host "coresw1"

Post 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"
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked