Hi,
currently to monitor a windows server via NCPA we are just adding the host to nagios XI and being alerted if its not reachable. I think Nagios does ping to verify availability. we want to add additional steps like ping, verify file available in a specific location, number of files in a specific location. I see there are various plugins for individual purpose. can i combine all plugins in a single service? if so how to configure it.
Thanks,
Availability monitoring apart from check_ping
Re: Availability monitoring apart from check_ping
It is possible to combine them all into a single check but only if you write the plugin to do it that will call all of the other checks and do logic/display it how you'd like OR use something like this which is pretty advanced:
https://github.com/flackem/check_multi
https://github.com/flackem/check_multi/ ... /readme.md
The general recommendation would be to use separate services per plugin/check type but Nagios XI allows for the flexibility if the plugin supports it.
See here as well:
https://support.nagios.com/kb/category.php?id=186
https://www.nagios.org/ncpa/help.php
https://support.nagios.com/kb/article/n ... a-722.html
One of the best parts of NCPA is if you go to https://YOURNCPAHOST:5693 and click the API it will show you what options are available and can help you construct the commands you need. Once you get one setup if you click the Run as a nagios check box another button on the bottom left shows up, if you click that View in alternative format button and click Active or Passive it will show you what command you should use.
https://github.com/flackem/check_multi
https://github.com/flackem/check_multi/ ... /readme.md
The general recommendation would be to use separate services per plugin/check type but Nagios XI allows for the flexibility if the plugin supports it.
See here as well:
https://support.nagios.com/kb/category.php?id=186
https://www.nagios.org/ncpa/help.php
https://support.nagios.com/kb/article/n ... a-722.html
One of the best parts of NCPA is if you go to https://YOURNCPAHOST:5693 and click the API it will show you what options are available and can help you construct the commands you need. Once you get one setup if you click the Run as a nagios check box another button on the bottom left shows up, if you click that View in alternative format button and click Active or Passive it will show you what command you should use.