Tutorial on how to create checkcommands?

Having issues? Post them here, and help other users.
Post Reply
User avatar
whittakerj
Junior Member
Posts: 7
Joined: Mon Sep 16, 2019 10:19 pm

Tutorial on how to create checkcommands?

Post by whittakerj »

I installed NEMS last week and I think I've got it figured out for the most part using the built in features. Awesome tool and I love the fact that I can easily deploy it to a pi. However, I can't find any good tutorials on creating checkcommands. I noticed when installed NRPE on my Asterisk server it gave me some commands. 

Code: Select all

### ASTERISK ###
command[check_asterisk]=/usr/lib/nagios/plugins/check_asterisk.pl $ARG1$
command[check_sip]=/usr/lib/nagios/plugins/check_sip $ARG1$
command[check_asterisk_sip_peers]=sudo /usr/lib/nagios/plugins/check_asterisk_sip_peers.sh $ARG1$
command[check_asterisk_version]=/usr/lib/nagios/plugins/nagisk.pl -c version
command[check_asterisk_peers]=/usr/lib/nagios/plugins/nagisk.pl -c peers
command[check_asterisk_channels]=/usr/lib/nagios/plugins/nagisk.pl -c channels
command[check_asterisk_zaptel]=/usr/lib/nagios/plugins/nagisk.pl -c zaptel
command[check_asterisk_span]=/usr/lib/nagios/plugins/nagisk.pl -c span -s 1
The problem is I have no idea how to turn these into checkcommands. Would it be possible to write a tutorial or video on how a person could find a script on https://exchange.nagios.org/ and turn it into a checkcommand from beginning to end?
Last edited by whittakerj on Mon Sep 16, 2019 10:41 pm, edited 1 time in total.
User avatar
Premium
Member
Posts: 50
Joined: Wed Nov 14, 2018 4:08 am

RE: Tutorial on how to create checkcommands?

Post by Premium »

Hello whittakerj

The documentation will be updated in the future.

If you have a request for a new feature, please post it in "Feature Requests"

Regards
Premium
Model : Raspberry Pi 3 +
Version : 1.5
Build : 8
Post Reply