Hi Folks
I am trying to use some of the following commands to monitor services
for my machines running netsaint-0.0.6b6 in redhat 6.2
check_netsaint /usr/local/netsaint/var/status.log 5 "/usr/local/netsaint/bin/netsaint -d /usr/local/netsaint/etc/netsaint.cfg"
Command Definition Example: command[check_netsaint]=/usr/local/netsaint/libexec/check_netsaint $ARG1$ $ARG2$ $ARG3$
I added the command definition example in my commands.cfg file, and added following to my services.cfg file
service[my_linux_box]=NETSAINT;0;24x7;3;3;1;linux-admins;60;workhours;1;1;1;;check_netsaint!/usr/local/netsaint/var/status.log!5! "/usr/local/netsaint/bin/netsaint -d /usr/local/netsaint/etc/netsaint.cfg"
I got error in the web interface saying that no netsaint process is
running, so I changed to following in the commands file
command[check_netsaint]=/usr/local/netsaint/libexec/check_netsaint /usr/local/netsaint/var/status.log 5 "/usr/local/netsaint/bin/netsaint"
and in the services file
service[my_linux_box]=NETSAINT;0;24x7;3;3;1;linux-admins;60;workhours;1;1;1;;check_netsaint
it works fine, saying that there are two processes running, this is confusing...
similarly I am using check_disk in commands.cfg file
command[check_disk]=/usr/local/netsaint/libexec/check_disk 85 95 $ARG1$
and using following in the services file
service[my_linux_box]=DISK;0;24x7;3;3;1;linux-admins;60;workhours;1;1;1;;check_disk!/dev/hda3
and it does not work, I get error "Unable to read output"
what am I doing wrong here???
I also tried using check_by_ssh to monitor services like smbd, nmbd and lpc
check_by_ssh lzxx4x 130.172.82.118 ps auxww | grep smbd
and ./check_by_ssh my_user 130.172.82.118 lpc status
and I get "ssh: my_user: Name or service not known"
Please help as I am serious trouble
Regards,
Amar
|