Wrong Alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Wrong Alerts

Post by ivp2015 »

Hi Team,
We configured Disk alerts on Linux Machine for /, today disk space 100% full but Nagios did not send any email regarding disk alert also not showing on GUI, Please find out the attachment.


Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Wrong Alerts

Post by lmiltchev »

Have you tested your check from the command line? Does it work fine when you run it in a terminal? It is possible that Nagios XI doesn't show you the expected output in the GUI, and doesn't notify you , because you have exceeded your license limits (as per your screenshot).
Be sure to check out our Knowledgebase for helpful articles and solutions!
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Wrong Alerts

Post by ivp2015 »

We configured Nagios on other Linux machine and the Linux machine total Drive size is 30GB and Nagios showing free space is 41GB, Please find out the attachment for the same. Also, we faced same issue with all Linux machines.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Wrong Alerts

Post by lmiltchev »

Can you show us the actual command that you are using for this service, run from the command line, along with the output of it?

Also, log into the Nagios Core interface:

Code: Select all

http://ip address/nagios
find the "Check Disk" service and show us a screenshot of the page.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Wrong Alerts

Post by ivp2015 »

Please find out the attachment
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Wrong Alerts

Post by lmiltchev »

First off, you need to add a "%" sign to your thresholds. If you just use an integer, the check will look into the MB of free space, not percentages.
-w, --warning=INTEGER
Exit with WARNING status if less than INTEGER units of disk are free
-w, --warning=PERCENT%
Exit with WARNING status if less than PERCENT of disk space is free
-c, --critical=INTEGER
Exit with CRITICAL status if less than INTEGER units of disk are free
-c, --critical=PERCENT%
Second, the plugin generates an alert if free space is less than one of the threshold values. So, you would need to probably changes your check from this:

Code: Select all

/usr/local/nagios/libexec/check_disk -w 80 -c 95 -p /
to this:

Code: Select all

/usr/local/nagios/libexec/check_disk -w 20% -c 15% -p /
This way, if free space is less than 20% (but more than 15%), you would get a "WARNING". If the disk space is less than 15%, you would get a "CRITICAL".
Be sure to check out our Knowledgebase for helpful articles and solutions!
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Wrong Alerts

Post by ivp2015 »

after changing the command
/usr/local/nagios/libexec/check_disk -w 20% -c 15% -p /

still getting the same wrong alerts. Please find out the attachment.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Wrong Alerts

Post by scottwilkerson »

This looks correct, it is returning OK as you have more than 20% free
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ivp2015
Posts: 142
Joined: Fri Feb 20, 2015 12:32 am

Re: Wrong Alerts

Post by ivp2015 »

It look not correct. Total disk size of "/" is 20GB only and output is free space of "/" is 41325MB almost 40GB
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Wrong Alerts

Post by scottwilkerson »

Oh I see, that is odd

what version of the plugin are you running?

/usr/local/nagios/libexec/check_disk -h |head -5
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked