Fake nagios check plugin
Wanted to demo something or just test Nagios? Here is a plugin written in php (so you need the package php5-cli) that ‘checks’ the values written in an ini file. View the source for more information and functionality
New Version! New Function! Oelala!
New function: random values!
How it works:
in the ini file, set the val to something like this:
val = "30~50"
The script wil generate a random number between the two given numbers, to make the output of the script less static.
Try it out! (it works
)
And now it also checks if the ini file exists..
UPDATE2: forgot the $critical value in the preformance data .. fixed.
UPDATE: I was stupid but have an update
I Forgot to add the exits to the end of the script.. Fixed now! Sorry guy’s! Download v0.2 . (yeah, I’m a guy who keeps all his versions
)
Tags: monitoring, nagios, php


![The Magic Mouse under Ubuntu [update]](http://blog.subutux.be/wp-content/uploads/2011/02/magic-mouse-ubuntu-638x300.png)










I'll try it tomorrow..
[...] This post was mentioned on Twitter by Su Butux. Su Butux said: Blog.subutux: Fake nagios check plugin: Wanted to demo something or just test Nagios? Here is a plugin written in … http://bit.ly/duQ09p [...]