I have spent days reading through pages of cryptic and unintelligible documentation, and incomplete or poorly documented examples.
I cant find where to start - its bewildering!
Basially, I just want to run a simple shell script on a target server and have nagios act on the result. I dont want to have to learn "C" and spend months developing a plugin, which is how it is looking.
E.g. I want to say write a script which executes "select count(*) from logged_in_users"
and have nagios graph draw the resultant number (and even alert on it)
I can write a 5 line script on the Database machine which returns the status and info in about 10 seconds. The problem is how to get Naigos to read this value.
I have read a lot of information about plugins, and seen a lot of plugin "scripts", but the information never says where the plugsin run, do they run on the Srever, The client or both, now how they are configured. I dont want the server to have the DB passwords, so I just want to write an abitrary shell script on the target server and have the result monitored.
The target servers already have something called nrpe installed, which I was hoping would allow me to write a simple shell script, but all its "commands" are in binary, and it is completely cryptic, and I cant find any overview documentation.
Can anyone suggest where to start? Has someone writen a "hello world" script? I have not been able to find a google search string which returns any relvant hits. Does noone on the planet want to monitor the results of a simple custom script via nagios?
Even better would be a mysql plugin, which allows you to insert your own bit of sql, but I cant find anything like this.
Thanks!