Hey team,
i am new to this and trying to set up Nagios NMS for site use. we have 500 devices on the field and this includes about 200 SNMP devices, Routers/Switchs then 300+ devices with just ICMP monitoring.
i have successfully added all my devices to my Nagios. i used the Switch / router configuration wizard to set these up. i have a lot of warnings/criticals for interfaces that are down. the thing is these are meant to be down and this should be thier normal state and if something gets connected to these interfaces i would like to know.
State of service should be flipped
Re: State of service should be flipped
You can use the negate plugin for this.
Go to Configure > Core Config Manager > Commands:
- Search for you command that the services are using
- Copy it, rename it, and add this onto the beginning of the existing Command Line value:
Then go edit the services you want to have this functionality and set their check command to the new one you just created.
That will flip them for you, see here for more info:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Go to Configure > Core Config Manager > Commands:
- Search for you command that the services are using
- Copy it, rename it, and add this onto the beginning of the existing Command Line value:
Code: Select all
$USER1$/negate -o CRITICAL -c OK -sThat will flip them for you, see here for more info:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: State of service should be flipped
Thank you this is exactly what i needed.
is there a way to apply this to all the interfaces which are critical. - i have 500 critical warnings on the Nagios. will take a lot of time to look at each individually then select in CCM.
is there a way to apply this to all the interfaces which are critical. - i have 500 critical warnings on the Nagios. will take a lot of time to look at each individually then select in CCM.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: State of service should be flipped
Hello,
However, you cannot select objects in the CCM based on state type, but you could script this out using the Status and Config Endpoints in the API. The API is fully documented at Help > API Docs.
Let us know if you have further questions.
I would recommend adding all the services/hosts to a group then use the Bulk Mods Tool (Configure > Tools > Bulk Modification Tool) to make the changes across the group.is there a way to apply this to all the interfaces which are critical? - i have 500 critical warnings on the Nagios. will take a lot of time to look at each individually then select in CCM.
However, you cannot select objects in the CCM based on state type, but you could script this out using the Status and Config Endpoints in the API. The API is fully documented at Help > API Docs.
Let us know if you have further questions.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!