change severity for polled ports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: change severity for polled ports

Post by sreinhardt »

You would need to either write a wrapper script or alter the code for check_ifoperstatus and recompile it. The wrapper script would be far easier as you could look for the output of a port being unknown/inaccessible and modify the output and exit code to your liking.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
deepavaidya
Posts: 80
Joined: Sun Oct 06, 2013 8:23 am

Re: change severity for polled ports

Post by deepavaidya »

I cannot find the statement "WARNING: SNMP error: No response from the remote host xxx" in check_ifoperstatus plugin or check_ifstatus plugin. From which script is this statement coming from ?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: change severity for polled ports

Post by tmcdonald »

That error will not be output by the plugin itself, but rather a snmp utility the script runs. Probably snmpwalk or snmpget.
Former Nagios employee
Locked