Page 2 of 2
Re: Nagios XI jobs showing warning
Posted: Wed Jun 23, 2021 11:02 am
by vtrac
Hi,
How are you doing?
Sorry, but I am very confused here ...
We have 2 nagiosxi servers - rmfv170nxi1b & bmds171nxi1p. We have recently rebuilt bmds171nxi1p and took a backup from rmfv170nxi1b and restored on bmds171nxi1p. We NagiosXI monitoring configured on each nagiosxi to monitor other server.
Please let me know which
rmfv170nxi1bor
bmds171nxi1pNagios XI server is having issue?
Do you have issue on ALL services check or just this "rmfv170nxi1b" service only? .... on which Nagios Xi machine?
May I see the command used to check this "rmfv170nxi1b" service?
Nagios Xi GUI > Configure > Core Config Manager > Services
Now, select the "rmfv170nxi1b" service > please click "Run Check Command" > Click "Run Check Command"
Now, please copy the command and outputs and post them here.
Best Regards,
Vinh
Re: Nagios XI jobs showing warning
Posted: Wed Jun 23, 2021 11:37 am
by Bala.Mutyam
Hi,
Sorry for confusion.
Please let me know which rmfv170nxi1b or bmds171nxi1p Nagios XI server is having issue?
rmfv170nxi1b is the one having issue.
Do you have issue on ALL services check or just this "rmfv170nxi1b" service only? .... on which Nagios Xi machine?
No, rmfv170nxi1b" service only. On bmds171nxi1p
Code: Select all
[[email protected] ~]$ /usr/bin/php /usr/local/nagios/libexec/check_nagiosxiserver.php --address=$HOSTADDRESS$ --url='http://rmfv_host/' --apikey='key' --mode=jobs
Report Engine (reportengine) stale (641 seconds old), System Statistics (sysstat) stale (600 seconds old), Event Manager (eventman) stale (593 seconds old), Feed Processor (feedprocessor) stale (600 seconds old), Command Subsystem (cmdsubsys) stale (592 seconds old), Nonstop Operations Manager (nom) stale (641 seconds old), Database Maintenance (dbmaint) stale (640 seconds old), Cleaner (cleaner) stale (640 seconds old)
Here is the Screenshot:
Re: Nagios XI jobs showing warning
Posted: Wed Jun 23, 2021 3:08 pm
by vtrac
Hi,
How are you doing?
I manually tried this on my Nagios XI machine and it works fine:
Code: Select all
/usr/bin/php /usr/local/nagios/libexec/check_nagiosxiserver.php --address=192.168.23.61 --url='http://192.168.23.61/nagiosxi' --apikey='myAPIkey' --mode=jobs
All jobs are running okay.
So, please try the below command.
Please replace "key" with the API key of "rmfv170nxi1b" ... you can get the API key by clicking at the "nagiosadmin" icon at the upper right corner of the Nagios XI GUI.
Code: Select all
/usr/bin/php /usr/local/nagios/libexec/check_nagiosxiserver.php --address=rmfv170nxi1b --url='http://rmfv170nxi1b/nagiosxi/' --apikey='key' --mode=jobs
and .... please replace "x.x.x.x" with the IP address of "rmfv170nxi1b":
Code: Select all
/usr/bin/php /usr/local/nagios/libexec/check_nagiosxiserver.php --address=x.x.x.x --url='http://x.x.x.x/nagiosxi/' --apikey='key' --mode=jobs
Please update outputs or screenshots of the results above.
Best Regards,
Vinh
Re: Nagios XI jobs showing warning
Posted: Thu Jun 24, 2021 6:59 am
by Bala.Mutyam
Hi Vinh,
I'm using the same command via template. It's working for one NagiosXI server and not for bmds171nxi1p as I sent screenshots in my previous message.
Thanks
Bala
Re: Nagios XI jobs showing warning
Posted: Thu Jun 24, 2021 3:16 pm
by vtrac
Hi Bala,
Please run the below command with "--debug=1" and post outputs to this ticket:
Please replace "
x.x.x.x" with the IP address of "bmds171nxi1p" and "
key" with your API key.
Code: Select all
/usr/bin/php /usr/local/nagios/libexec/check_nagiosxiserver.php --address=x.x.x.x --url='http://x.x.x.x/nagiosxi/' --apikey='key' --mode=jobs --debug=1
Regards,
Vinh