[Nagiosplug-help] Nagios Plugin

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Jul 16 03:13:23 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 15/07/08 10:29 AM, Kaushal Shriyan wrote:
> Hi,
> 
> $ netstat -an|grep 12001|wc -l
> 3
> $ netstat -an|grep 12001|cut -c69-|sort|uniq -c
>       2 ESTABLISHED
>       1 LISTEN
> alert will be, if command1 returns more than 200, than send the output
> of command2.
> 
> Can somebody here can point me to any bash script example. I would
> develop on it

All info you need is there:

http://nagiosplug.sourceforge.net/developer-guidelines.html

You can also look at other scripts in http://nagiosexchange.org

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIfUsz6dZ+Kt5BchYRAmqQAJ0RjbXbsGztJt34mzHxxTAyKROTgQCfXE6j
oFhAKVW1aw/78cU+NncoyBI=
=djx6
-----END PGP SIGNATURE-----




More information about the Help mailing list