Re: Need to Monitor Informix
Posted: Fri Jul 14, 2017 9:00 am
Made this change and it seemed to work running the command.
However in the XI I am still seeing the following why is that? PLEASE SEE THE ATTACHMENT.
Something i notice. I moved the script over to the other servers change the name like you mentiond for the export INFORMIXSERVER= , but when doing su - nagios I am getting a weird result.
However when I cat /etc/passwd I see this --
any idea in regards to this? right now when I run the script on the other servers I am seeing the same results. I see this.
Code: Select all
[root@huey libexec]# su - nagios
Last login: Thu Jul 13 15:29:40 PDT 2017 on pts/0
[nagios@huey ~]$ /usr/local/nagios/libexec/check_ifx.sh
IBM Informix Dynamic Server Version 12.10.FC8W2WE -- On-Line (Prim) -- Up 3 days 20:52:48 -- 1034088 KbytesSomething i notice. I moved the script over to the other servers change the name like you mentiond for the export INFORMIXSERVER= , but when doing su - nagios I am getting a weird result.
Code: Select all
[root@louie libexec]# su - nagios
Last login: Fri Jul 14 07:16:06 PDT 2017 on pts/3
su: warning: cannot change directory to /home/nagios: No such file or directory
-bash-4.2$
Code: Select all
tpeters:x:1408:3001::/home/rmca73:/sbin/nologin
tkarwan:x:1409:3001::/home/rmca73:/sbin/nologin
carlosa:x:1410:3001::/home/rmca73:/sbin/nologin
nagios:x:224:499::/home/nagios:/bin/bash
[root@louie libexec]#
Code: Select all
[root@louie libexec]# /usr/local/nagios/libexec/check_ifx.sh
CRITICAL
[root@louie libexec]#