Issue with installed plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Issue with installed plugin

Post by rbuckle »

So i installed a plugin and i am getting this error:

Unknown - Read or Write File /var/tmp/check_traffic_10.15.100.254_2__itnmsJ.hist_dat_64 Error with user uid=500(nagios) gid=500(nagios) groups=500(nagios),501(nagcmd).

This is probably a really easy question.

Plugin was installed using the XI Interface.

Thank you
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Issue with installed plugin

Post by rkennedy »

Which plugin did you install, and where are you seeing that error? Could you post the related service / command definition for us to look at as well?
Former Nagios Employee
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Issue with installed plugin

Post by rbuckle »

Plugin: Check_Traffic:
https://exchange.nagios.org/directory/P ... sh/details

Error is in XI's Service Detail page.

Command Used: $USER1$/check_traffic.sh -V $ARG1$ -C $ARG2$ -H $HOSTADDRESS$ -I $ARG3$ -p $ARG4$ -w 45,45 -c 55,55

Image
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Issue with installed plugin

Post by Box293 »

It's likely that this file:

/var/tmp/check_traffic_10.15.100.254_2__itnmsJ.hist_dat_64

Is being used as a temporary storage file that the check uses each time it runs.

If you tested it at the command line as the "root" user then the file would be owned by root and the nagios user can't update it.

Also, if you used the "Test Check Command" button in CCM, then the same issue is occuring except CCM executes as the apache user.

Delete the file /var/tmp/check_traffic_10.15.100.254_2__itnmsJ.hist_dat_64
Go back to the home screen and find the Service
When viewing the Service Status Details page click the Schedule a forced immediate check link

For all further testing for this service DO NOT use the "Test Check Command" button, or go to an ssh session as the root user. If you really must test it from the CLI, su as the nagios user first.

Code: Select all

su nagios
xxxx the plugin command
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Issue with installed plugin

Post by rbuckle »

Thank you, this error has gone away now... You may close the thread

Thank you again for your help.
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Locked