Here are commands example to use my scripts
with nagios.
It's only the basic things you can do, check the help of every
script if you need more advanced features especially if you need
performance outputs.
The command definitions are complete, but not the service definitions
: you must add host name, contact groups, etc....

All these commands use $USER<n>$ macros
to put snmp login. The reason for this is that the ressources.cfg
file cannot be read by the CGI, preventing your "passwords"
to be seen with the config.
You must set the $USER7$ or $USER8$ to make these examples work.
The $USER<n>$ macro are defined in the resources.cfg file

ARG1 : regexp of service(s) to check
ARG2 : warning level for : minimum number of active &
alive service , average response time, number of connexions
ARG3 : critical level for : minimum number of active &
alive service , average response time, number of connexions
ARG4 : additional arguments if needed.

Service

css_index_file_create : This is a "fake"
service, which only creates index file in /tmp. It normally
returns the number of services it indexes, or an error if
he can't.css_verif_TEST : checks at least 2 services
mathnig TEST are up. Warning if 1, critical if 0. This service
uses the index file created by css_index_file_create, and
returns UNKNOWN if it can't find it.css_verif_TEST2 : checks at least 2 services
mathnig TEST2 are up. Warning if 1, critical if 0. This service
doesn't use an index file.