Nagios XI jobs showing warning

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Nagios XI jobs showing warning

Post 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
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: Nagios XI jobs showing warning

Post 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

[nagios@localhost.localdomain ~]$ /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:
You do not have the required permissions to view the files attached to this post.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Nagios XI jobs showing warning

Post 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
Bala.Mutyam
Posts: 97
Joined: Wed Apr 29, 2020 12:18 pm

Re: Nagios XI jobs showing warning

Post 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
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Nagios XI jobs showing warning

Post 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
Locked