Page 1 of 1

Results showing differently

Posted: Thu Jan 23, 2025 9:24 am
by Pratapa
Hi,

We are using Nagios core 4.4.4

When we run a script on the remote machine (which is a Linux machine, RHEL 7.8 ) we are getting expected output whereas when we invoke it from the nagios server it is giving different output.

On Remote Host :

nagios@dd2ukytp201>/usr/bin/sudo /usr/lib64/nagios/plugins/check_all_fs.py 81 91
WARNING -- /opt filesystem breached warning level 18% free

df -k /opt
it is 82% full and showing correct results.

where as on Nagios server when we execute it is showing different results.(executed with nagios user)

./check_nrpe -H dd2ukytp201 -n -t 300 -c check_root_df -a 81 91
WARNING - /opt/opnv/netebackup filesystem breached warning level 12% free

However /opt/opnv/netbackup is 70% free on the remote host.

Not sure why it is showing differently on Nagios server.

Re: Results showing differently

Posted: Fri Jan 24, 2025 3:09 pm
by DoubleDoubleA
Hi @Pratapa,

Where did you get check_all_fs.py?

Why does one report on /opt and the other on /opt/opnv/netbackup ?

I'd probably want to look at your plugin and also compare your command definition for check_root_df to running the plugin locally on the remote host with check_all_fs.py 81 91 .

A lot of times when things don't work but you'd really think they should, I like to go looking for a typo or some other slight (and easy to miss) mis-configuration.

Aaron

Re: Results showing differently

Posted: Sat Jan 25, 2025 9:24 pm
by kg2857
Post the nrpe command check_root_df that gets executed for this check.
The command and what's being run from the shell aren't the same.

Re: Results showing differently

Posted: Mon Jan 27, 2025 5:54 am
by Pratapa
This issue is resolved.

Issue is with IP addres.

Re: Results showing differently

Posted: Tue Jan 28, 2025 10:00 am
by DoubleDoubleA
Thanks for reporting it solved!

Aaron